Hi,
after getting a bit fed up with Mach3 glitches, I'm considering switching to KMotionCNC on the lathe, however I'm wondering if anybody else has done this, and what issues I might encounter.
Having had a bit play with KMotionCNC (not connected to anything), my main concerns are surrounding tools.
My ATC is controlled via Modbus by a PLC, combined with one output (ChangeAllowed - to signal a change is allowed) and one input (Turret OK - confirms the current/actual position matches the requested position).
The turret position is continually read from the PLC and stored in a user variable, and the requested position is stored in a user variable and continually written to the PLC.
At the moment it's handled via anM6 macro in Mach, which goes along the lines of -
Send new tool position, wait for TurretOK signal to go low (confirms the PLC has received the new tool position), set ChangeAllowed high (tells the PLC it's ok to move the turret), wait for TurretOK to go high (confirms the turret is now at requested position and locked), set ChangeAllowed low.
There is also some logic in the macro so that if the requested position already matches the existing position, then it does nothing.
So the questions I'd like answered are -
1) I'm guessing this is just a case of re-writing the macro in C, and setting the M6 in KMotionCNC to Execute Prog?
2) How are tool offsets set?
I know in Mach, you simply take a cut, measure, enter the value, and the tool table is updated.
3) And finally, is there any easy way to handle swapping tools/offsets in the turret?
My turrent only has 6 positions, so I regularly swap tools, and in Mach this is handled by the 4 number T command, where the first two digits are the tool position to use, and the second two the tool offsets to use.
Anybody with any general experience of using KMotionCNC for a lathe is very welcome to add their thoughts to this.
Thanks,
Moray